import {httpRequest} from '@/request/https'

export default {
    /**
     * 责任险分页查询
     * */
    postInsurancePage: params => httpRequest({url: '/con/conLiabilityInsurance/page', method: 'post', params}),
    /**
     * 新增责任险
     * */
    postAddInsurance: params => httpRequest({url: '/con/conLiabilityInsurance', method: 'post', params}),
    /**
     * 修改责任险
     * */
    putInsurance: params => httpRequest({url: '/con/conLiabilityInsurance', method: 'put', params}),
    /**
     * 删除责任险
     * */
    deleteInsurance: params => httpRequest({url: `/con/conLiabilityInsurance/${params}`, method: 'delete'}),
    /**
     * 申请责任险优秀模板
     * */
    postInsuranceExcellent: params => httpRequest({url: `/con/conLiabilityInsurance/excellent`, method: 'post', params}),
    /**
     * 货险分页查询
     * */
    postCargoInsurancePage: params => httpRequest({url: '/con/conCargoInsurance/page', method: 'post', params}),
    /**
     * 新增货险
     * */
    postCargoInsurance: params => httpRequest({url: '/con/conCargoInsurance', method: 'post', params}),
    /**
     * 修改货险
     * */
    putCargoInsurance: params => httpRequest({url: '/con/conCargoInsurance', method: 'put', params}),
    /**
     * 删除货险
     * */
    deleteCargoInsurance: params => httpRequest({url: `/con/conCargoInsurance/${params}`, method: 'delete'}),
    /**
     * 申请货险优秀模板
     * */
    postCargoInsuranceExcellent: params => httpRequest({url: `/conCargoInsurance/excellent`, method: 'post', params}),
    /**
     * 查询责任险详情
     * */
    getInsuranceInfo: params => httpRequest({url: `/con/conLiabilityInsurance`, method: 'get', params}),
    /**
     * 货险详情
     * */
    getCargoInsuranceInfo: params => httpRequest({url: `/con/conCargoInsurance`, method: 'get', params}),
    /**
     * 责任险导出
     * */
    exportInsurance: params => httpRequest({url: `/con/conLiabilityInsurance/export`, method: 'post', params}),
    /**
     * 货险导出
     * */
    exportCargoInsurance: params => httpRequest({url: `/con/conCargoInsurance/export`, method: 'post', params}),
}
